package com.love.cloud.admin.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.love.cloud.admin.api.vo.UserVO;
import com.love.cloud.common.mybatis.entity.SimpleBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @author hongdongqu
 */
@Data
@Entity
@Table(name = "sys_user_group_member")
@TableName("sys_user_group_member")
@EqualsAndHashCode(callSuper = false)
@org.hibernate.annotations.Table(appliesTo = "sys_user_group_member",comment="用户组成员")
public class SysUserGroupMember extends SimpleBaseEntity{
    @Column(columnDefinition = "bigint(20) COMMENT '用户组id'")
    private Long groupId;// 用户组id
    @Column(columnDefinition = "int COMMENT '排序'")
    private Integer sort; // 排序
    @Column(columnDefinition = "bigint(20) COMMENT '用户id'")
    private Long userId; // 用户id
    @Column(columnDefinition = "bigint(20) COMMENT '部门id'")
    private Long deptId;
    @TableField(exist = false)
    @Transient
    private UserVO userVos;
}
